package com.itheima.springfirststart.Controller;

import com.itheima.springfirststart.Pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @RequestMapping("/user")
    public String sayUser(User user) {
        System.out.println(user);
        return user.toString();
    }
}
